import request from '@/utils/request'

// 定义公共的api 
const BASE_URL = 'admin/system/sysLoginLog';

export default {
  // 查询用户和分页
  getLoginLogPageInfo(page, limit, searchObj) {
    return request({
      url: `${BASE_URL}/${page}/${limit}`,
      method: 'get',
      params: searchObj
    })
  },

  //删除日志
  removeLoginById(id) {
    return request({
      url: `${BASE_URL}/removeLoginById/${id}`,
      method: 'delete'
    });
  },
}
